package com.shd.edanpei.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by mc on 2018/6/7.
 */

public class UrlModel implements Parcelable {

    /*** 分享内容*/
    private String content;
    /*** 分享标题*/
    private String title;
    /*** 分享图片url*/
    private String urlPicturePath;
    /*** 分享url*/
    private String urlShare;
    /*** 展示url*/
    private String urlShow;
    /*** 分享本地图片*/
    private String picFile;

    public UrlModel() {
    }

    protected UrlModel(Parcel in) {
        content = in.readString();
        title = in.readString();
        urlPicturePath = in.readString();
        urlShare = in.readString();
        urlShow = in.readString();
        picFile= in.readString();
    }

    public static final Creator<UrlModel> CREATOR = new Creator<UrlModel>() {
        @Override
        public UrlModel createFromParcel(Parcel in) {
            return new UrlModel(in);
        }

        @Override
        public UrlModel[] newArray(int size) {
            return new UrlModel[size];
        }
    };

    public String getContent() {
        return content;
    }

    public String getTitle() {
        return title;
    }

    public String getUrlPicturePath() {
        return urlPicturePath;
    }

    public String getUrlShare() {
        return urlShare;
    }

    public String getUrlShow() {
        return urlShow;
    }

    public void setUrlPicturePath(String urlPicturePath) {
        this.urlPicturePath = urlPicturePath;
    }


    public String getPicFile() {
        return picFile;
    }

    public void setPicFile(String picFile) {
        this.picFile = picFile;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(content);
        dest.writeString(title);
        dest.writeString(urlPicturePath);
        dest.writeString(urlShare);
        dest.writeString(urlShow);
        dest.writeString(picFile);

    }
}

